body {
	padding-top: 60px;
	padding-bottom: 60px;
	font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4 {
	font-weight: 300;
}

input[type="text"],
input[type="password"] {
	font-weight: 300;
}

.body_section {
	text-align: center;
}
.body_section_image {
	max-width: 70%;
}

/* Đăng nhập */
form#quen_mat_khau input,
form#dang_nhap input {
	font-size: 18px;
	height: auto;
}

form#quen_mat_khau input[type="text"],
form#quen_mat_khau input[type="password"],
form#dang_nhap input[type="text"],
form#dang_nhap input[type="password"]{
	padding-top: 8px;
	padding-bottom: 8px;
}

form#quen_mat_khau  input[type="submit"],
form#dang_nhap input[type="submit"] {
	padding: 8px 16px;
}

#site_footer {
	background: url('<%= image_path 'black_lozenge.png' %>');
	overflow: hidden;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 100;
}

#site_footer .span10 {
	text-align: right;
}

#site_footer #copyright {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	color: #fcfcfc;
	font-size: 0.85em;
	font-style: italic;
}

#site_footer .ngon_ngu {
	font-style: normal;
	color: #c0c0c0;
	margin: 0.3em;
	transition: color 0.2s;
}

#site_footer .ngon_ngu.hien_tai {
	font-weight: 600;
	color: #fff
}

#site_footer .ngon_ngu:hover {
	color: #fff;
}


/* Home page */
#home_page #site_title #site_header h1 {
	float: left;
	text-align: center;
	max-width: 99%;
}
#home_page #home_blog {
	background: url('<%= image_path 'grunge_wall.png'%>') center bottom;
	border-top: 1px solid #D4D4D4;
	border-bottom: 1px solid #D4D4D4;
	min-height: 400px;
	max-height: 640px;
	margin: 1em 0;
}
#home_page #home_blog .container {
	position: relative;
}
#home_page #home_blog >div >h2 {
	background: url('<%= image_path 'blog_ca_phe_vert.png'%>') center top no-repeat;
	position: absolute;
	width: 110px;
	height: 405px;
	top: -20px;
	right: 10px;
}
#home_page #home_blog .post {
	margin-right: 150px;
	font-size: 16px;
	line-height: 1.6em;
	color: #555;
}
#home_page #home_blog .post .time {
	font-family: serif;
	font-style: italic;
	font-weight: bold;
}
#home_page #home_blog .post .title {
	margin: 0.6em 0 1.2em;
}
#home_page #home_blog .post .title a{
	font-size: 2em;
	color: #531800;
}
#home_page #home_blog .post .doc_tiep a {
	color: #531800;
	text-decoration: underline;
}
#home_page > .divider {
	border-bottom: 1px solid #ccc;
	margin: 1em 0;
}
#home_page .hinh_anh_dai_dien {
	width: 70%;
}
#home_page .san_pham {
	border: 1px solid #E6E6E6;
	margin: 0 0 1em 0;
	padding: 5px;
	text-align: center;
}

/* admin soạn thảo văn bản */
#admin_bar .tao_html input[type="text"] {
	font-size: 18px;
	font-weight: 300;
	width: 75%;
	height: auto;
	padding: 7px;
}
#admin_bar .tao_html .add-on {
	font-size: 18px;
	font-weight: 300;
	height: auto;
	padding: 7px 7px 9px;
}
#admin_bar .tao_html input[type="submit"] {
	margin-top: 1em;
}
#admin_bar table .hinh_anh_dai_dien img {
	max-width: 150px;
}

/* upload file  */
#thu_vien_anh .anh_xem_truoc > div {
	border: 1px solid transparent;
	border-radius: 6px;
	text-align: center;
	margin-bottom: 1em;
	padding: 10px;
	transition: border 0.2s, background 0.2s;
	overflow: hidden;
	white-space: normal;
}
#thu_vien_anh .anh_xem_truoc > div:hover {
	background: #fcfcfc;
	border-color: #c0c0c0;
}
#thu_vien_anh .anh_xem_truoc img {
	max-width: 80%;
	margin-bottom: 0.4em;
}

/* nhom san pham */
#nhom_san_pham #danh_muc_header
{
	background: url('<%= image_path 'black_lozenge.png' %>');
	padding: 2em 0;
	text-align: center
}

#nhom_san_pham #danh_muc_header h1 {
	font-size: 80px;
	color: #fcfcfc;
	line-height: 1.6em;
}

#nhom_san_pham #danh_muc_header h1 .span9 {
	text-align: right;
	margin-top: 30px;
}

.san_pham_xem_truoc > div {
	padding: 5px;
	text-align: center;
	transition: background 0.2s, border 0.2s;
	border: 1px solid transparent;
	margin-bottom: 1em;
}

.san_pham_xem_truoc > div:hover {
	background: #f0f0f0;
	border-bottom-color: #9f9f9f;
	border-top-color: #9f9f9f;
}

.san_pham_xem_truoc .ten_san_pham {
	color: #474747;
	font-size: 18px;
	line-height: 1.6em;
}

.san_pham_xem_truoc .gia_san_pham {
	color: #1856AD;
	font-size: 16px;
}
.san_pham_xem_truoc .hinh_anh_dai_dien img {
	width: 100%;
}
.san_pham_xem_truoc .gia_san_pham.gia_goc {
	color: #a0a0a0;
}

.san_pham_xem_truoc .gia_san_pham.gia_khuyen_mai {
	font-size: 22px;
}

.san_pham_xem_truoc .thoi_gian_khuyen_mai {
	font-style: italic;
	font-weight: bold;
	font-size: 13px;
}
.post.san_pham .san_pham_tom_tat .hinh_anh_dai_dien {
	float: left;
	width: 60%;
	padding: 10px 10px 10px 0;
}

.post.san_pham .san_pham_tom_tat .hinh_anh_dai_dien img {
	width: 100%;
}

.post.san_pham .san_pham_tom_tat .noi_dung_dai_dien {
	float: right;
	width: 30%;
	text-align: center;
	font-size : 2em;
	line-height: 1.6em;
	background: #fcfcfc;
	border: 1px solid #c0c0c0;
	border-radius: 6px;
	margin-top: 10px;
	padding: 5px;
}
.san_pham_xem_truoc.sidebar > div {
	border-color: #c0c0c0;
}
.san_pham_xem_truoc.sidebar > div:first-child {
	/*border-top-color: #9f9f9f;*/
}
.san_pham_xem_truoc.sidebar .hinh_anh_dai_dien {
	width: 45%;
	float :left;
}

.san_pham_xem_truoc.sidebar .noi_dung_dai_dien {
	width: 45%;
	float: right;
}
.top_divider {
	border-bottom: 1px solid #c0c0c0;
}
.top_divider .thu_tu {
	width: 50px;
	margin: 0 auto;
	padding: 3px 5px;
	background: #fcfcfc;
	text-align: center;
	color: #333;
	border: 1px solid #c0c0c0;
	border-radius: 4px;
	font-weight: bold;
	position: relative;
	bottom: -12px;
}
#danh_muc_bai_viet .post .time {
	font-style: italic;
	font-size: 1.2em;
	line-height: 2.2em;
}

.post img {
	border: 1px solid #e0e0e0;
	padding: 5px;
}

/* gio hang */
.gio_hang .sp_avatar img {
	width: 100px;
}

.gio_hang .sp_noi_dung {
	width: 50%;
}

.gio_hang input[type="text"] {
	width: auto;
}
.don_hang .thong_tin_xu_ly td{
	font-weight: 600;
}
.don_hang .thong_tin_xu_ly td span {
	font-weight: normal;
}

/* goi y caphe */
#goi_y_caphe {
	background: url('<%= image_path 'black_lozenge.png' %>');
	color: #c0c0c0;
	text-align: center;
}

#goi_y_caphe .khong_hoan_chinh{
	padding-top: 1.5em;
	padding-bottom: 1.5em;
}

#goi_y_caphe .list {
	width: 100%;
	text-align: center;
	vertical-align: middle;
	font-size: 12px;
}

#goi_y_caphe .list .item h4 {
	font-size: 14px;
}
#goi_y_caphe .list .item {
	width: 15%;
	margin: 1%;
	display: inline-block;
}

/* mobile theme */
/* Landscape phone to portrait tablet */
@media (max-width: 979px) { 
	body {
		padding-top: 0;
	}
}

@media (max-width: 767px) {
	#home_page #site_title #site_header h1  {
		float: none;
	}
	#home_page #home_blog > div > h2 {
		background: url('<%= image_path 'blog_ca_phe_hor.png'%>') left center no-repeat;
		position: static;
		width: 221px;
		height: 60px;
		margin: 0.5em -20px;
	}
	#home_page #home_blog {
		margin: 1em -20px;
	}
	#home_page #home_blog .container {
		padding: 0 20px;
	}
	#home_page #home_blog .post {
		margin-right: 0;
	}
	
	#nhom_san_pham #danh_muc_header {
		margin-left: -20px;
		margin-right: -20px;
	}
	#nhom_san_pham #danh_muc_header h1 .span9{
		text-align: center;
	}
	.post.san_pham .san_pham_tom_tat .hinh_anh_dai_dien {
		float: none;
		width: 90%;
		margin: 0 auto;
		padding: 10px 10px 10px 0;
	}
	
	.post.san_pham .san_pham_tom_tat .hinh_anh_dai_dien img {
		width: 100%;
	}
	
	.post.san_pham .san_pham_tom_tat .noi_dung_dai_dien {
		float: none;
		margin: 10px auto;
		width: 60%;
	}
	
	#site_footer .span10, 
	#site_footer .span2 {
		text-align: center;
	}

}

@media (min-width: 481px) and (max-width: 767px) {
	.san_pham_xem_truoc > div {
		border-bottom-color: #9f9f9f;
	}

	.san_pham_xem_truoc .hinh_anh_dai_dien {
		width: 45%;
		float :left;
	}
	
	.san_pham_xem_truoc .noi_dung_dai_dien {
		width: 45%;
		float: right;
	}
}
